package models

// https://gorm.io/zh_CN/docs/models.html

// AppPayment 门诊缴费记录
type AppPaymentList struct {
	ID         int64   `gorm:"primaryKey;autoIncrement;not null"`
	PaymentID  int64   `gorm:"not null; index;"`
	UserID     int64   `gorm:"not null; index;"`
	ItemTitle  string  `gorm:"type:varchar(256);not null;comment:费用名称"`
	ItemPrice  float64 `gorm:"null;comment:单价"`
	ItemCount  float64 `gorm:"null;comment:数量"`
	ItemAmount float64 `gorm:"null;comment:金额"`

	BaseModel
}

func (AppPaymentList) TableName() string {
	return "app_payment_list"
}
